import {createRouter, createWebHistory} from 'vue-router'

const routes = [
  {
    path: '/xiaomi/', // 首页
    name: 'HomePage',
    component: () => import('../HomePage.vue'),
  },

  {
    path: '/xiaomi/goods',
    name: 'Goods',
    component: () => import(/* webpackChunkName: "about" */ '../Goods')
  },
  {
    path: '/xiaomi/goods/details',
    name: 'Details',
    component: () => import(/* webpackChunkName: "about" */ '../Details')
  }
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router
